#!/bin/sh
# Run system activity accounting tool every 10 minutes
#===============================================================================
function update_repo() {
    MYHOME="/home/arch"
    #SDIR="${HOME}/myhome/pkgbuild/mypkg_scripts"
    SDIR="${MYHOME}/MultiConfigDir/archlinux/update_repo/mypkg_scripts"
    #SFILE="mypkg_parse.sh"
    SFILE="${SDIR}/sync_repo_db"
    ${SFILE} -S

#   if [ -d $SDIR ] ; then
#       #cd $SDIR
#       pushd $SDIR
#       if [ -x $SFILE ] ;then
#         echo "$(pwd)"
#         ./${SFILE} download 2> /dev/null
#       else 
#         echo "error: $SFILE can't run!!!"
#       fi
#       popd
#   else
#       echo "error:  $SDIR dir no exists!!!"
#   fi
}

update_repo
